package com.ldp.designpatterns.study.adapter.ClassAdapter.client;

import com.ldp.designpatterns.study.adapter.ClassAdapter.adapter.BritishStandard;

/**
 * @ClassName Client
 * @Description 适配器二：对象适配器代码——插座适配器——客户端调用
 * @Author lindipei
 * @Date 2023/10/16 14:13
 */
public class Client {
    public void charge(BritishStandard britishStandard) {
        if ("中式插座".equals(britishStandard.getBritishStandard())) {
            System.out.println("充电成功！");
        } else {
            System.out.println("充电失败！");
        }
    }


}
